<!DOCTYPE html> 
<html>

	<head>
		<meta charset="UTF-8">
		<title>个人中心</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />  	   
		<link rel="stylesheet" href="../../wx/css/iconfont.css" />
	    <link rel="stylesheet" href="../../wx/css/new.css" />
	    <link rel="stylesheet" href="../../wx/css/style.css" />
	    <link rel="stylesheet" href="../../css/mui.min.css" rel="stylesheet" />
	    <style>
	    	.tuig_list li{
	    		    padding: 22px 25px 20px 10px;
	    		    border-radius: 5px;
	    	}
	    	.tuig_list li em {
			    font-size: 1.2rem;
			    font-weight: bold;
			}
			.tuig_box {

			    padding-top: 24%;
			}
			.mem_nav li .nam{
				padding-top: .7rem;
			}
			
			.clearfix img{
				width: 1.63rem;
				height: 1.63rem;
				margin-left:2.1rem;
			}
	    </style>
	</head>

	<body style="background-color: #ffffff;">
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">会员中心</h1>
		</header>
		<nav class="bottom">
			<div class="navbox">
				<a class="" id="fjsj">
					<span class="iconfont icon-51"></span><br />
					<span class="mui-tab-label">附近商家</span>
				</a>
				<a class=" mui-active right" id="hyzx">
					<span class="iconfont icon-gerenzhongxin"></span><br />
					<span class="mui-tab-label">个人中心</span>
				</a>
			</div>
		</nav>
		<div class="mui-content"  style="padding-top:44px;background-color: #ffffff;">
			<div class="tuig_top">
				<div class="tuig_toux mem_infobox">
		    		<img id="touxiang" src="../../wx/images/member.jpg">
				</div>
				<div class="tuig_nambox">
					<div class="tuig_nam">  </div>
					<div class="tuig_glj">ID:<span id="id"></span> </div>
					<div class="tuig_glj">推荐上级ID:<span id="level"></span> </div>
				</div>
			</div>
			<div class="tuig_box">
				<ul class="tuig_list clearfix">
					<li id="yu">
						<a href="yue_record">
						<div class="num"><em>钱包</em></div>
						<div class="qian">￥<span id="balance">0.00  </span></div>
						</a>
					</li>
					<li class="right" id="jf">
						<a href="glj">
						<div class="num"><em>鼓励金</em></div>
						<div class="qian">￥<span id="score">0.00 </span></div>
						</a>
					</li>
				</ul> 
			</div>
			<ul class="mem_nav clearfix">
				<li class="mui-active">
					<a href="examples/ajax.html">
						<span class="iconfont icon-erweima"></span>
						<div class="nam">会员码</div>
					</a>
				</li>
				<input type="hidden" id="fx" value="{$info_user['is_fx']}">
				<li id="tui"> 
					<a href="#"> 
						<span class="iconfont icon-msnui-market"></span>
						<div class="nam">推广中心</div>
					</a>
				</li>
				<li >
					<a href="{:url('member/hongb_list')}">
						<span class="iconfont icon-ai-hongbao"></span>
						<div class="nam">鼓励金红包</div>
					</a>
				</li>
				<li>
					<a href="{:url('index/film/index')}">
						<span><img src="../../wx/images/film_logo3.png"</span>
						<div class="nam">观影卡</div>
					</a>
				</li>
				<li >
					<a href="{:url('index/member/edit')}">
						<span><img src="../../wx/images/sz.png"</span>
						<div class="nam">设置</div>
					</a>
				</li>
				<li>
					<a href="{:url('index/member/agentsq')}">
						<span class="iconfont icon-shop"></span>
						<div class="nam">商家中心</div>
					</a>
				</li>
			</ul> 
		</div> 
	</body>
<script src="../../js/mui.min.js"></script>
<script src="../../js/vue.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/app.js"></script>
<script src="../../js/m.js"></script>
<script>
		mui.init({
		        
    	});
    	mui('.navbox').on('tap', '#fjsj', function() {
			set.open("/plus/index/index");
		});
		mui.plusReady(function() {
			plus.nativeUI.showWaiting("加载中....",{padlock: true});//数据出来前显示等待加载框
			document.getElementById("id").innerText=getValue("id");
			document.getElementById("level").innerText=getValue("level");
			document.getElementById("touxiang").src=getValue("logo");
			ajaxData(set.api_url+"Member/index",null,function(res){
				plus.nativeUI.closeWaiting();
				
				var score=res.score;
				var balance=res.balance;
				document.getElementById("balance").innerText=getValue("balance");
				document.getElementById("score").innerText=getValue("score");
			});		 
		});
					
		mui('ul').on('tap', 'li>a', function() {
			var href = this.getAttribute('href');
			set.open(href);
		})
</script>
</html> 
